<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:activiti="http://activiti.org/bpmn" 
  targetNamespace="Examples">

  <process id="EventBasedGatewayScenario" isExecutable="true">
    <startEvent id="start" />
    <sequenceFlow sourceRef="start" targetRef="gateway" />
    <eventBasedGateway id="gateway" />
    <sequenceFlow sourceRef="gateway" targetRef="timerEvent1" />    
    <sequenceFlow sourceRef="gateway" targetRef="timerEvent2" />
    <intermediateCatchEvent id="timerEvent1" >
      <timerEventDefinition>
        <timeDuration>PT0S</timeDuration>
      </timerEventDefinition>   
    </intermediateCatchEvent>
    <intermediateCatchEvent id="timerEvent2" >
      <timerEventDefinition>
        <timeDuration>PT0S</timeDuration>
      </timerEventDefinition>   
    </intermediateCatchEvent>
  
    <sequenceFlow sourceRef="timerEvent1" targetRef="task1" />
    <userTask id="task1" />
    <sequenceFlow sourceRef="task1" targetRef="end1" />
    <endEvent id="end1" />
    
    <sequenceFlow sourceRef="timerEvent2" targetRef="task2" />
    <userTask id="task2" />
    <sequenceFlow sourceRef="task2" targetRef="end2" />
    <endEvent id="end2" />
  </process>

  

</definitions>
